get /cloud/aws/roles

List AWS IAM Roles (getAwsIamRoles)

Lists the various AWS IAM Roles.

Consumes

This API call consumes the following media types via the Content-Type request header:

  • application/json

Query parameters

credentialsName (required)

Query Parameter — Cloud credentials name

Return type

array[Role]

id (optional)

String

name (optional)

 

 

Example data

Content-Type: application/json

[

{

"id": "arn:aws:iam::123456789:instance-profile/roleName",

"name": "roleName"

}

]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

  • application/json

Responses

200

OK

Default

Error ErrorInfo

errorCode (optional)

String

url(optional)

String

message (optional)

String